//package com.alibaba.cirtus.ots.application.app.ability.facade;
//
//import com.alibaba.cz.base.tool.log.Log;
//import com.alibaba.fastjson.JSONObject;
//import com.epoch.app.otsapplicationappsdk.transportgoodsdetail.dto.RenderRequest;
//import com.epoch.app.otsapplicationappsdk.transportgoodsdetail.service.TransportGoodsDetailService;
//import com.epoch.app.otsunifiedinventory.model.dto.MnTmsShipDetailListTestRequest;
//import com.epoch.app.otsunifiedinventory.model.dto.MnTmsShipDetailListTestResponse;
//import com.epoch.app.otsunifiedinventory.service.OtsUnifiedInventoryService;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.util.ArrayList;
//import java.util.List;
//
//@Service
//public class TransportGoodsDetailServiceImpl implements TransportGoodsDetailService {
//
//    private static Log log = Log.getLogger(TransportGoodsDetailServiceImpl.class);
//    @Resource
//    private OtsUnifiedInventoryService otsUnifiedInventoryService;
//    @Override
//    public Object render(RenderRequest renderRequest) {
//        log.info("装运单明细渲染 请求参数 {} " , JSONObject.toJSONString(renderRequest));
//        JSONObject result = new JSONObject();
//        JSONObject request = JSONObject.parseObject( JSONObject.toJSONString(renderRequest.getRequestBody()));
//        if (null==request|| StringUtils.isBlank(request.getString("shipOrderId"))){
//            result.put("success",false);
//            result.put("message","外部单号不能为空!");
//            return result;
//        }
//
//        try {
//            MnTmsShipDetailListTestRequest mnTmsShipDetailListTestRequest = new MnTmsShipDetailListTestRequest();
//            mnTmsShipDetailListTestRequest.setShipOrderId(request.getString("shipOrderId"));
//            return otsUnifiedInventoryService.mnTmsShipDetailListTest(mnTmsShipDetailListTestRequest);
//        } catch (Exception e) {
//            e.printStackTrace();
//            log.error("装运单明细异常");
//        }
//        return result;
//    }
//
//}
